]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Ensure we don't recreate existing AppIcons for folders
authorJonas Dreßler <verdre@v0yd.nl>
Sat, 23 Nov 2019 20:44:55 +0000 (21:44 +0100)
committerJonas Dreßler <verdre@v0yd.nl>
Sat, 23 Nov 2019 21:01:09 +0000 (22:01 +0100)
This was missed in 910037f014355ee9680c45f82a4aac2891c4074f, make sure
we do the same thing for AppIcons that are created when reloading
folders.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/851

js/ui/appDisplay.js

index f78a2c03d1c8961389d98aeb98ef00f64c7cbab3..6221eb2b413ddabe5f0bb5fa4ec305da5171c0dd 100644 (file)
@@ -1417,7 +1417,10 @@ class FolderView extends BaseAppView {
             if (apps.some(appIcon => appIcon.id == appId))
                 return;
 
-            let icon = new AppIcon(app);
+            let icon = this._items[appId];
+            if (!icon)
+                icon = new AppIcon(app);
+
             apps.push(icon);
         };